.option-header {
    text-transform: uppercase;
    font-family: barcodetext;
    text-align: right;
    font-size: 2em;
    padding: 0.175em 1ch;
    width: 50%;

    .info-header {
        font-size: 0.75em;
        padding-top: 0.25em;
    }
}

table {
    width: 100%;
}

input {
    width: fit-content;
    align-self: center;
}

.large-box {
    min-width: 30vw;
    max-width: 100%;
    min-height: 100px;
    max-height: 400px;
    transition: unset;
    border-radius: 0;
}

.normal-button {
    outline: 1px dashed var(--neutral-color);
    background: var(--dark-color);
    color: var(--bright-color);
    font-family: spacemono, monospace;
    border: none;

    &:hover {
        background: var(--neutral-color);
        color: var(--dark-color);
    }

    &:active {
        background: var(--bright-color);
        color: var(--dark-color);
    }

    &:focus {
        outline: 1px dashed var(--friend-color);
    }

    &:has(input:focus) {
        outline: 1px dashed var(--friend-color);
    }
}

.normal {
    border: 1px dashed var(--bright-color);
    background: var(--dark-color);
    color: var(--bright-color);
    font-family: spacemono, monospace;

    &:focus {
        border: 1px dashed var(--neutral-color);
        outline: none;
    }
}

.incoherent {
    color: var(--dark-color);
    text-shadow: 0px 1px #0000006b;
    border: none;
    outline: none !important;
    background: none;
    font-family: spacemono, monospace;

    &::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        opacity: 0.4;
        background: url(/media/corru/damagetran.gif), url(/media/corru/hazeflow.gif);
        background-size: 100% auto, auto;
        background-position: center;
    }
}

.container {
    position: relative;
    width: fit-content;
    height: fit-content;

    &:has(.incoherent) {
        max-width: 100%;
        z-index: 1;
        background-color: var(--bright-color);
        border: 1px solid var(--dark-color);
        border-bottom: 5px ridge var(--obesk-color);

        &:has(.incoherent:focus) {
            border-bottom: 5px ridge var(--friend-color);
        }
        
        &::before {
            content: "";
            position: absolute;
            inset: 0;
            opacity: 0.4;
            background: url(/media/corru/damagetran.gif), url(/media/corru/hazeflow.gif);
            background-size: 100% auto, auto;
            background-position: center;
            pointer-events: none;
            z-index: -1;
        }
    }
}

.vertical {
    display: flex;
    flex-direction: column;
}

input[type="number"] {
    appearance: textfield;
}

.percent{
    display: inline-block;
    position: relative;
    &::after {
        content: "%";
        position: absolute;
        top: 2px;
        right: .5em;
        transition: all .05s ease-in-out;
        color: var(--bright-color);
        padding: 0.1em 0;
        pointer-events: none;
    }
}

.centre-contents {
    display: flex;
    align-items: center;
    flex-direction: column;
}

hr {
    width: 100%;
    border: 1px dashed var(--bright-color);
    margin: 1em;
}

.sysinfo {
    text-align: center;
    margin-bottom: 0.5em;
}

*[definition] {
    cursor: alias;
}

.stacked-bar {
    width: 90%;
    background-color: var(--friend-color);
    height: 1.5rem;
    outline: 1px dashed var(--bright-color);
    display: flex;
    position: relative;
}

#bar-corrupt {
    height: 100%;
    background-color: var(--obesk-color);
    position: relative;
}

#bar-partial {
    height: 100%;
    background-color: var(--neutral-color);
    position: relative;
}

.drag-handle {
    position: absolute;
    right: -1px;
    width: 2px;
    height: 100%;
    background-color: var(--dark-color);
    pointer-events: none;
    z-index: 100;
}

.slider {
    width: 90%;
    height: 1.5rem;
    outline: 1px dashed var(--bright-color);
    background-color: var(--friend-color);
    margin: 0;

    &::-moz-range-thumb {
        width: 2px;
        height: 100%;
        background: var(--dark-color);
        border: none;
    }

    &::-moz-range-progress {
        background-color: var(--neutral-color);
        height: 100%;
    }
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
    .slider {
        overflow: hidden;
        -webkit-appearance: none;
    }

    .slider::-webkit-slider-runnable-track {
        height: 1.5rem;
        -webkit-appearance: none;
    }

    .slider::-webkit-slider-thumb {
        width: 2px;
        -webkit-appearance: none;
        height: 1.5rem;
        background: var(--dark-color);
        box-shadow: -20em 0 0 20em var(--neutral-color);
    }
}

td {
    vertical-align: middle;
}

#corruptedIn {
    margin-bottom: 1em;
}

#curveContainer {
    outline: 1px solid var(--bright-color);
    width: 80%;
    margin-bottom: 0.5em;
}

.radio-selector {
    display: inline-block;
    padding: 0.25em;

    &:has(input:checked) {
        background: var(--neutral-color);
        color: var(--dark-color);
    }
    
    input {
        opacity: 0;
        z-index: -10;
        position: absolute;
    }
}

.cmyk-selector {
    /* display: inline-block; */
    width: 2em;
    height: 2em;
    opacity: 0.3;
    margin: 0.2em;
    position: relative;

    &:has(input:checked) {
        opacity: 1;
    }

    input {
        width: 100%;
        height: 100%;
        opacity: 0;
        /* position: absolute; */
        margin: 0;
        z-index: 10;
    }

    .selector-inner {
        position: absolute;
        inset: 0.1em;
    }
}

.custom-palette-button {
    width: 2em;
    height: 2em;
    margin: 0.2em;
    vertical-align: middle;
}

#dither-input-render,#dither-output-render {
    width: 100%;
    outline: 1px dashed var(--bright-color);
}

.image-container[open] {
    border: 1px solid var(--neutral-color);
    display: flex;
    flex-direction: column;
    image-rendering: pixelated;
    padding: 0 1em 1em 1em;

    summary {
        border: none !important;
    }
}

input[type="file"] {
    opacity: 0;
    z-index: -10;
    position: absolute;
}